<div ng-include src="tpl/public/header.html"></div>
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li>销售部激励奖项配置</li>
  </ol>
  
  <form class="form-inline search-box" role="form" ng-submit="submitAdd()" novalidate>
    <div class="form-group">
      <label>奖项配置 （例：1,1,手机。对应奖项，奖项个数，奖品名称(可不填),多个换行，每次配置会删除历史配置数据）</label>
       <div class="controls">
          <textarea style="height: 200px;" class="textarea input-event w500" 
          ng-model="item.salesPrizes"></textarea>
      </div>
    </div>
    <button type="submit" class="btn btn-default">提交</button>
  </form>
  
    <table class="table table-striped table-hover">
    <thead>
    <tr>
      <th width="70" rowspan="2">奖项</th>
      <th width="70" rowspan="2">奖品名称</th>
      <th width="70" rowspan="2">分配奖项个数</th>
      <th width="70" rowspan="2">已奖项个数</th>
    </tr>
    </thead>
    <tbody>
      <tr ng-repeat="li in iteminfo">
        <td width="70">{{li.prizesType | prizesTypeFilter}}</td>
        <td width="70">{{li.prizesName}}</td>
        <td width="70">{{li.prizesCount}}</td>
        <td width="70">{{li.prizesPassCount}}</td>
      </tr>
    </tbody>
  </table>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="iteminfo.length > 0"></div>

</div>
